package com.learn;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Import;

import com.learn.bean.Dog;

/**
 * @Import 导入一个或多个类（会被spring容器托管），或配置类，配置类里面的bean也会被spring容器托管
 * @author Romanceling
 *
 */
@SpringBootApplication
//@Import(Jeep.class)
//@Import(MyImportSelector.class)

//@EnableLog(name="springboot enablelog")
@EnableEnco(packages={"com.learn.bean"})
public class App {
    public static void main( String[] args ){
        ConfigurableApplicationContext context = SpringApplication.run(App.class, args);
        System.out.println(context.getBean(Dog.class));
        context.close();
    }
}
